/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.infrastructure.metadata.exception.children;

import cn.hallele.infrastructure.metadata.exception.HalException;

/**
 * 安全类异常，如加解密
 *
 * @author anle5
 * @since 2024/9/8 21:31
 */
public class SecurityException extends HalException {
    /**
     * 无参构造函数
     */
    public SecurityException() {
    }

    /**
     * 带message的构造函数
     *
     * @param message message
     */
    public SecurityException(String message) {
        super(message);
    }

    /**
     * 带message和args的构造函数
     *
     * @param message message
     * @param args    args
     */
    public SecurityException(String message, Object... args) {
        super(message, args);
    }

    /**
     * 带message、cause和args的构造函数
     *
     * @param message message
     * @param cause   cause
     * @param args    args
     */
    public SecurityException(String message, Throwable cause, Object... args) {
        super(message, cause, args);
    }

    /**
     * 带cause的构造函数
     *
     * @param cause cause
     */
    public SecurityException(Throwable cause) {
        super(cause);
    }

    /**
     * 全参构造函数
     *
     * @param message            message
     * @param cause              cause
     * @param enableSuppression  enableSuppression
     * @param writableStackTrace writableStackTrace
     * @param args               args
     */
    public SecurityException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Object... args) {
        super(message, cause, enableSuppression, writableStackTrace, args);
    }
}
